/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tanks.Missiles;

import com.sun.lwuit.Graphics;
import com.sun.lwuit.Image;
import tanks.Cell;
import tanks.Graph;


/**
 *
 * @author Александр
 */
public class Plasma extends Missile
    {
        public Plasma(int Facing, Cell C) 
        {
            super(Facing, C);
            range = 1;
            strength = 6;
        }
        protected Image drawShape(Image canvas)
        {
            Graphics gr = canvas.getGraphics();
            gr.setColor(0x7FFFD4);//Aquamarine
            gr.fillArc(c.X() * Graph.CellSize() + Graph.CellSize() / 5, c.Y() * Graph.CellSize() + Graph.CellSize() / 5, Graph.CellSize() / 5, Graph.CellSize() / 5, 0, 360);
            gr.setColor(0xFFFFFF);//White
            gr.fillArc(c.X() * Graph.CellSize() + Graph.CellSize() / 4, c.Y() * Graph.CellSize() + Graph.CellSize() / 4, Graph.CellSize() / 8, Graph.CellSize() / 8, 0, 360);
            /*
            using (Graphics gr = Graphics.FromImage(canvas))
            {
                gr.FillEllipse(new SolidBrush(Color.Aquamarine), new Rectangle(c.X * game.CellSize + game.CellSize / 5, c.Y * game.CellSize + game.CellSize / 5, game.CellSize / 5, game.CellSize / 5));
                gr.FillEllipse(new SolidBrush(Color.White), new Rectangle(c.X * game.CellSize + game.CellSize / 4, c.Y * game.CellSize + game.CellSize / 4, game.CellSize / 8, game.CellSize / 8));
            }*/
            return canvas;
        }
    }
